// pages/swiper/swiper.js
Page({
  data:{
     dots:true,
     duration:1000,
     interval:2000,
     play:true
  },
  onLoad:function(options){
    // 页面初始化 options为页面跳转所带来的参数
  },
  onDotTap:function(event){
      var dots = event.detail.value;
      this.setData({dots:dots});
  },
  onPlayTap:function(event){
      var play = event.detail.value;
      this.setData({play:play});
  },
  onCirTap:function(event){
      var cir = event.detail.value;
      this.setData({cir:cir})
  },
  onDurationTap:function(event){
      var dur = event.detail.value;
      this.setData({duration:dur});
  },
  onIntervalTap:function(event){
      var inter = event.detail.value;
      this.setData({interval:inter});
  }
})